package com.futer.ssm.service.impl;

import com.futer.ssm.dao.LibraryMapper;
import com.futer.ssm.model.Library;
import com.futer.ssm.service.LibraryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BuyImpl implements LibraryService {
    @Resource
    private LibraryMapper libraryMapper;

    @Override
    public int buyObject(Library library) {
        return libraryMapper.insertSelective(library);
    }
}
